package net.yunzhanyi.generic.mapper;

import net.yunzhanyi.generic.domain.model.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TagMapper {
    int deleteByPrimaryKey(Integer tagId);

    int insert(Tag record);

    int insertSelective(Tag record);

    Tag selectByPrimaryKey(Integer tagId);

    int updateByPrimaryKeySelective(Tag record);

    int updateByPrimaryKey(Tag record);

    List<Long> selectPoetryIdAll();


    List<String> selectTagPoetryId(@Param("poetryId") Long poetryId);

    List<Tag> selectInit();

    Tag selectByName(@Param("name") String name);
}
